{literal}
<style type="text/css">
	.this .m_tab{
		border-bottom:1px solid #D6DBDE; border-top:1px solid white; width:100%;
	}	
	.this .td1 {
		border-right:1px solid #D6DBDE; height:22px; width:70px; text-align:center
	}
	.this .td2 {
		border-right:1px solid #D6DBDE; width:50px; text-align:center;
	}
	.this .td3{
		border-right:1px solid #D6DBDE; width:120px; text-align:center
	}
	.this .td4{
		border-right:1px solid #D6DBDE; vertical-align:middle; text-align:center; width:50px
	}
	.this .td5{
		padding:0px 0px 0px 10px; border-right:1px solid #D6DBDE; width:170px
	}
	.this .td6{
		padding:0px 0px 0px 10px; border-right:1px solid #D6DBDE;
	}
	.this .sq1 {
		margin:0 10px 0 10px; width:30px; height:15px; border:1px solid #1D4E48;  background-color:#366F69;
	}
	.this .sq2 {
		margin:0 10px 0 10px; width:30px; height:15px; border:1px solid #BC0501;  background-color:#DF0400;
	}
	.this .sq3 {
		margin:0 10px 0 10px; width:30px; height:15px; border:1px solid #CAC01E;  background-color:#FDF01F;
	}
	.this .sq4, .this .sq0{
		margin:0 10px 0 10px; width:30px; height:15px; border:1px solid #E0E0E0;  background-color:#FFFFFF;
	}	
</style>
{/literal}
{strip}
<span class="this">
{capture name="list"}

  {assign var="seo" value=""}
  {if $smarty.post.filter_by_word}{assign_session var="query" value=$smarty.post.query}{/if}
  {if $smarty.session.query}
  {search_in_form_data query=$smarty.session.query assign="seo"}
  {/if}
	
	{counter start=0 skip=1 assign="ct"}		
	{foreach from=$form_all item="el"}
		{if $smarty.get.form_object_id==$el.block_id || !$smarty.get.form_object_id || $smarty.get.form_object_id==-1 || !$el.block_id}
		{if !$smarty.session.query || $seo[$el.id]>0}
			{counter assign="ct"}			
			{assign_array3 assign="new_list" value=$el key=$ct}
    {/if}
		{/if}
	{/foreach}
	
	{ext->paging elements=$new_list items_per_page=$_var.filled_forms_per_page page=$smarty.get.element_list_page_nr assign="page_data"}
	
	{counter start=0 skip=1 assign="ct"}
	{foreach from=$new_list item="el"}
	{counter assign="ct"}
		{if $ct >= $page_data.current_page.from && $ct <= $page_data.current_page.to || $smarty.get.element_list_page_nr==-1}
			{assign_array3 key=$ct value=$el assign="paged_list"}
		{/if}
	{/foreach}
	
	{foreach from=$paged_list item="el"}
		<table cellpadding="0" cellspacing="0" {if !$el.hide}bgcolor="#FDFDFD"{else}bgcolor="#F4F6F7"{/if} class="m_tab">
			<tr>			
				<td class="td1"><input name="ids[{$el.id}]" value="{$el.id}" type="checkbox"></td>			
				<td class="td2">{$el.id}</td>
				<td class="td3">{$el.time_create}</td>
				<td class="td4"><div class="sq{$el.depth}">&nbsp;</div></td>			
				<td class="td5">
				<a href="index.php?admin=1&form_id={$el.id}{if $smarty.get.form_object_id}&form_object_id={$smarty.get.form_object_id}{/if}" class="blackNoUnderline">
				{if $el.hide == "1"}<strong>{/if}
				{if $el.block_name}
					{$el.block_name|truncate:"26":"...":true}
				{else}			
					{t t='Duomenys neprieinami.'}
				{/if}
				{if $el.hide == "1"}</strong>{/if}
				</a>
				</td>
				<td class="td6">
				{if $el.name}
					{$el.name}
				{else}
					{t t="Pirmasis puslapis"}
				{/if}
				</td>
			</tr>
		</table>		
	{/foreach}	
{/capture}

{include file="admin/body/forms/tabs.htm"}
<table width="100%" cellpadding="6" cellspacing="0" border="0" bordercolor="#DBE1E5" bgcolor="#DBE1E5">
<tr>
<td>
{include file="admin/body/forms/menu.html"}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="12"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>

{if $ct}
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	<tr>		
		<td  height="20" style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="70">{t t='Žymėjimas'}</td>	
		<td  height="20" style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="50">{t t='ID'}</td>		
		<td  height="20" style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="120">{t t='Data'}</td>		
		<td  height="20" style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="50">{t t='Būsena'}</td>						
		<td style="font-size:9px; color:#4C4C4C; text-align:left; padding:0px 0px 0px 10px; border-right:1px solid #D6DBDE" width="170">{t t='Pavadinimas'}</td>	
		<td style="font-size:9px; color:#4C4C4C; text-align:left; padding:0px 0px 0px 10px">{t t='Šaltinis'}</td>		
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
<form name="child_list" action="{$_http_path}/index.php" enctype="multipart/form-data" method="POST">
<!--<input type="hidden" name="no-refresh" value="1">-->
<input name="admin" type="hidden" value="1">
<input name="mod" type="hidden" value="catalog">
<input name="act" type="hidden" value="">
<input name="parent" type="hidden" value="">
<input name="copys" type="hidden" value="">
<input name="referer" type="hidden" value="{ext->get_referer}">
{$smarty.capture.list}
</form>
{else}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="50" bgcolor="#FFFFFF" align="center" style="padding:15px">
		{t t='Nėra nei vienos užpildytos formos'}
		{if $smarty.get.form_object_id}. 
		  <a href="index.php?admin=1" target="_self"><strong>{t t='Atkreipkite dėmesį, kad įjungtas filtravimas. Norėdami jį išjungti spauskite čia!'}</strong></a>
		{/if} 
		</td>		
	</tr>
</table>
{/if}

<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="12"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>	
</table>
{*include file="admin/body/forms/menu.html"*}
</td>		
</tr>
</table>
{/strip}
</span>
